package com.sojson.config.swagger.condition;

import com.sojson.config.condition.MyConfigurationCondition;
import com.sojson.constant.Constant;
import com.sojson.util.text.Convert;

/**
 * 启动Swagger
 *
 * @author liu
 * @date 2021-04-28
 */
public class Swagger2Condition extends MyConfigurationCondition {

    /**
     * 是否开启
     */
    @Override
    public boolean matches() {
        return Convert.toBool(Constant.PROPERTIES.getProperty("so.swagger2.enable"), false);
    }

}